package main

import "fmt"

//用递归求阶乘
func Factorial(n uint64)(result uint64)  {
	if (n>0){
		fmt.Println("n:",n)

		result=n*Factorial(n-1)
		fmt.Println("result:",result)
		return result
	}
	return 1\
	
}
func main()  {
	var i int=15
	fmt.Printf("%d 的阶乘是　%d\n",i,Factorial(uint64(i)))
}
